package com.polytech.business;

import com.polytech.beans.Client;
import com.polytech.dao.ClientDao;

public class DefaultClientManager implements ClientManager {
	private ClientDao clientDao;
	@Override
	public void create(Client client) {
		clientDao.insert(client);
	}

	@Override
	public Client find(String key) {
		return clientDao.select(key);
	}

	@Override
	public void remove(Client client) {
		clientDao.remove(client);
	}

	@Override
	public void update(Client client) {
		clientDao.update(client);

	}

	public void setClientDao(ClientDao clientDao) {
		this.clientDao = clientDao;
	}
	
}
